import 'package:distribution_mall_flutter/constant/cf_constant.dart';
import 'package:distribution_mall_flutter/generated/l10n.dart';
import 'package:distribution_mall_flutter/utils/image_loader.dart';
import 'package:distribution_mall_flutter/widgets/card.dart';
import 'package:distribution_mall_flutter/widgets/icon_button.dart';
import 'package:flutter/material.dart';
import 'package:flutter/widgets.dart';

class ContentImg extends StatelessWidget {
  final EdgeInsets padding = const EdgeInsets.fromLTRB(EdgeConstant.edge15,
      EdgeConstant.edge15, EdgeConstant.edge10, EdgeConstant.edge15);
  final EdgeInsets margin = const EdgeInsets.symmetric(
      horizontal: EdgeConstant.edge20, vertical: EdgeConstant.edge10);

  const ContentImg({super.key});

  @override
  Widget build(BuildContext context) {
    return EPCard(
        enableClickEffect: true,
        padding: padding,
        margin: margin,
        child: Column(
          children: [
            Row(
              mainAxisAlignment: MainAxisAlignment.spaceBetween,
              crossAxisAlignment: CrossAxisAlignment.center,
              children: [
                Text(
                  S.of(context).productDetails_variations,
                  style: const TextStyle(
                      fontSize: FontConstant.f13, fontWeight: FontWeight.bold),
                ),
                EPIconButton(onPressed: () {})
              ],
            ),
            Padding(
              padding: const EdgeInsets.only(top: EdgeConstant.edge5),
              child: Row(
                children: [
                  ImageLoader.imageNet(
                      "https://newnary-test-1300176682.cos.ap-guangzhou.myqcloud.com/TENANT3924117688555169382400/common/space/20240223/5fc2e0da566be6569ece6cad3960bae9.png",
                      width: 35,
                      height: 35,
                      radius: RadiusConstant.edge5)
                ],
              ),
            )
          ],
        ));
  }
}
